
<div id="main-content"> <!-- Main Content Section with everything -->			
	<!-- Page Head -->						
	<div class="clear"></div> <!-- End .clear -->
	
	<div class="content-box"><!-- Start Content Box -->
		
		<div class="content-box-header">
			
			<h3><?php echo $query?'修改':'新建'?> DHCP</h3>					
			<div class="clear"></div>
			
		</div> <!-- End .content-box-header -->
		
		<div class="content-box-content">
			
			<div >
			
				<form action="<?php echo base_url()?>dhcp/execute" method="post">
						<input type='hidden' name='id' value='<?php echo $query?$query['id']:''?>'>						
						<p>
							<label>员工名>>Host：</label>
							<select name='hid'>
							<?php foreach(staff_host() as $k=>$v):?>
								<option value='<?php echo $k;?>' <?php echo ($query&&$query['hid']==$k)?'selected':''?>><?php echo $v;?></option>
							<?php endforeach;?>
							</select>
								
						</p>
						<p>
							<label>Mac：</label>
								<input class="text-input small-input" type="text" id="small-input" name="mac" value='<?php echo $query?$query['mac']:''?>' /> 
								
						</p>
						<p>
							<label>IP：</label>
								<input class="text-input small-input" type="text" id="small-input" name="ip" value='<?php echo $query?$query['ip']:''?>' /> 
								
						</p>
						
						<p>
							<label>备注（主机名-员工名-部门名）：</label>
							<textarea class="text-input" wrap='virtual' name="note" cols="20" rows="15"><?php echo $query?$query['note']:''?></textarea>
						</p>
						
						<p>
							<input class="button" type="submit" value="Submit" />
							<input class="button back" type="button" value="Back" />
						</p>							
					<div class="clear"></div><!-- End .clear -->
					
				</form>						
			</div>					
		</div> <!-- End .content-box-content -->
		
	</div> <!-- End .content-box -->
	<div class="clear"></div>			
</div> <!-- End #main-content -->	